package com.tc.plus.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tc.plus.entity.enums.UserSexEnum;
import com.tc.plus.entity.enums2.User2SexEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Auther: tianchao
 * @Date: 2020/12/3 13:21
 * @Description:
 */
@Data
@TableName("sys_user")
@Accessors(chain = true)
public class User {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String username;
    private String password;
    private Date birthday;
    private String cardNumber;
    private Date createTime;
    private Date updateTime;
    private User2SexEnum sex;
    @TableLogic
    private boolean deleted;
}
